package com.technology.education.ui.teacher.main

import android.os.Bundle
import com.technology.education.databinding.FragmentMainTeacherBinding
import com.technology.education.ext.showLog
import com.technology.education.ui.teacher.home.HomeFragment
import com.technology.education.ui.teacher.mine.MineFragment
import com.technology.education.ui.teacher.order.OrderFragment
import me.hgj.jetpackmvvm.base.fragment.BaseVmDbFragment
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.ext.view.init

class MainFragment : BaseVmDbFragment<BaseViewModel, FragmentMainTeacherBinding>() {
    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.viewPager.init(
            this,
            arrayListOf(HomeFragment(), OrderFragment(), MineFragment()),
            false
        )
        mDatabind.navView.setOnNavigationItemSelectedListener {
            mDatabind.viewPager.setCurrentItem(it.order,false)
            true
        }
    }

    override fun createObserver() {
    }

    override fun showLoading(message: String) {
    }

    override fun dismissLoading() {
    }
}